package com.myblog.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.myblog.common.annotation.Excel;
import com.myblog.common.core.domain.BaseEntity;

/**
 * 文章管理对象 tb_article
 * 
 * @author mingo_sheep
 * @date 2025-05-05
 */
public class Article extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 博客ID */
    private Long id;

    /** 作者ID */
    @Excel(name = "作者ID")
    private Long userId;

    /** 博客标题 */
    @Excel(name = "博客标题")
    private String title;

    /** 博客内容 */
    @Excel(name = "博客内容")
    private String content;

    /** 博客摘要 */
    @Excel(name = "博客摘要")
    private String summary;

    /** 封面图片 */
    @Excel(name = "封面图片")
    private String coverImage;

    /** 状态(1公开,2私密,3草稿) */
    @Excel(name = "状态(1公开,2私密,3草稿)")
    private Long status;

    /** 是否置顶(1置顶,0不置顶) */
    @Excel(name = "是否置顶(1置顶,0不置顶)")
    private Long isTop;

    /** 文章类型(1原创,2转载,3翻译) */
    @Excel(name = "文章类型(1原创,2转载,3翻译)")
    private Long articleType;

    /** 文章访问次数 */
    @Excel(name = "文章访问次数")
    private Long viewTimes;

    /** 文章点赞次数 */
    @Excel(name = "文章点赞次数")
    private Long thumbsUpTimes;


    /** 排序 1 最大 往后越小 用于置顶文章的排序 */
    private Long order;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setSummary(String summary) 
    {
        this.summary = summary;
    }

    public String getSummary() 
    {
        return summary;
    }

    public void setCoverImage(String coverImage) 
    {
        this.coverImage = coverImage;
    }

    public String getCoverImage() 
    {
        return coverImage;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setIsTop(Long isTop) 
    {
        this.isTop = isTop;
    }

    public Long getIsTop() 
    {
        return isTop;
    }

    public void setArticleType(Long articleType) 
    {
        this.articleType = articleType;
    }

    public Long getArticleType() 
    {
        return articleType;
    }

    public void setViewTimes(Long viewTimes) 
    {
        this.viewTimes = viewTimes;
    }

    public Long getViewTimes() 
    {
        return viewTimes;
    }

    public void setThumbsUpTimes(Long thumbsUpTimes) 
    {
        this.thumbsUpTimes = thumbsUpTimes;
    }

    public Long getThumbsUpTimes() 
    {
        return thumbsUpTimes;
    }

    public void setOrder(Long order) 
    {
        this.order = order;
    }

    public Long getOrder() 
    {
        return order;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("summary", getSummary())
            .append("coverImage", getCoverImage())
            .append("status", getStatus())
            .append("isTop", getIsTop())
            .append("articleType", getArticleType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("viewTimes", getViewTimes())
            .append("thumbsUpTimes", getThumbsUpTimes())
            .append("order", getOrder())
            .toString();
    }
}
